package com.mate.cloud.controller;

import com.mate.cloud.config.MyBatisConnection;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Administrator
 */
@RestController
@RequestMapping("/mybatis")
public class MybatisController {

    @Resource
    private MyBatisConnection myBatisConnection;

    @GetMapping("/connect")
    public void connect() {
        this.myBatisConnection.connect();
    }
}
